package com.listener;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class LC01Listener implements JavaDelegate {

	public void execute(DelegateExecution execution) throws Exception {
		Object deptLeader= execution.getVariable("deptLeader");
		if(deptLeader!=null){
			if(deptLeader.equals("true")){
				deptLeader="false";
			}else{
				deptLeader="true";
			}
			execution.setVariable("deptLeader", deptLeader);
		}
		System.out.println("进入LC01Listener");
	}

}
